package com.leo.blog.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.leo.blog.entity.Log;

public interface LogDao {
	int deleteByPrimaryKey(int logId);
    
    int insertLog(Log log);

    int insertSelective(Log log);

    Log queryByPrimaryKey(int logId);

    int updateByPrimaryKeySelective(Log log);

    int updateByPrimaryKey(Log log);
    
    /**
 	 *  根据日期月份分组查询
 	 * @return
 	 */
 	List<Log> queryLogListByDate(@Param("logCondition") Log logCondition, @Param("rowIndex") int rowIndex, 
			@Param("pageSize") int pageSize);
 	int queryLogListByDateCount(@Param("logCondition") Log logCondition);
 	
 	List<?> queryUserLogByData(@Param("logCondition") Log logCondition);
}
